Skip to content

Commit 2d8fdf9

Browse files
committed
initalized variables as null, comment out unused variables
1 parent fa79615 commit 2d8fdf9

30 files changed

+89
-89
lines changed

Examples/ServiceExamples/Scripts/ExampleAlchemyDataNews.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727

2828
public class ExampleAlchemyDataNews : MonoBehaviour
2929
{
30-
private string _apikey;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
30+
private string _apikey = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333

34-
private AlchemyAPI _alchemyAPI;
34+
private AlchemyAPI _alchemyAPI = null;
3535

3636
private bool _getNewsTested = false;
3737

Examples/ServiceExamples/Scripts/ExampleAlchemyLanguage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleAlchemyLanguage : MonoBehaviour
2828
{
29-
private string _apikey;
30-
private string _url;
31-
private fsSerializer _serializer = new fsSerializer();
29+
private string _apikey = null;
30+
private string _url = null;
31+
//private fsSerializer _serializer = new fsSerializer();
3232

3333
private AlchemyAPI _alchemyAPI;
3434

Examples/ServiceExamples/Scripts/ExampleConversation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
public class ExampleConversation : MonoBehaviour
2929
{
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private string _workspaceId;
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
private string _workspaceId = null;
3434
//private string _token = "<authentication-token>";
3535

3636
private Conversation _conversation;

Examples/ServiceExamples/Scripts/ExampleDiscoveryV1.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
public class ExampleDiscoveryV1 : MonoBehaviour
2626
{
27-
private string _username;
28-
private string _password;
29-
private string _url;
30-
private fsSerializer _serializer = new fsSerializer();
27+
private string _username = null;
28+
private string _password = null;
29+
private string _url = null;
30+
//private fsSerializer _serializer = new fsSerializer();
3131
//private string _token = "<authentication-token>";
3232

3333
private Discovery _discovery;

Examples/ServiceExamples/Scripts/ExampleDocumentConversion.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
public class ExampleDocumentConversion : MonoBehaviour
2828
{
2929
private DocumentConversion _documentConversion;
30-
private string _username;
31-
private string _password;
32-
private string _url;
33-
private fsSerializer _serializer = new fsSerializer();
30+
private string _username = null;
31+
private string _password = null;
32+
private string _url = null;
33+
//private fsSerializer _serializer = new fsSerializer();
3434
//private string _token = "<authentication-token>";
3535

3636
private string _examplePath;

Examples/ServiceExamples/Scripts/ExampleGetToken.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleGetToken : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
3232
private string _workspaceId;
3333
private fsSerializer _serializer = new fsSerializer();
3434

Examples/ServiceExamples/Scripts/ExampleLanguageTranslator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public class ExampleLanguageTranslator : MonoBehaviour
2828
{
2929
private string _pharseToTranslate = "Hello, welcome to IBM Watson!";
3030
private string _pharseToIdentify = "Hola, donde esta la bibliteca?";
31-
private string _username;
32-
private string _password;
33-
private string _url;
31+
private string _username = null;
32+
private string _password = null;
33+
private string _url = null;
3434
//private string _token = "<authentication-token>";
35-
private fsSerializer _serializer = new fsSerializer();
35+
//private fsSerializer _serializer = new fsSerializer();
3636

3737
private LanguageTranslator _languageTranslator;
3838
private string _baseModelName = "en-es";

Examples/ServiceExamples/Scripts/ExampleNaturalLanguageClassifier.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
public class ExampleNaturalLanguageClassifier : MonoBehaviour
3434
{
35-
private string _username;
36-
private string _password;
37-
private string _url;
38-
private fsSerializer _serializer = new fsSerializer();
35+
private string _username = null;
36+
private string _password = null;
37+
private string _url = null;
38+
//private fsSerializer _serializer = new fsSerializer();
3939
//private string _token = "<authentication-token>";
4040

4141
private NaturalLanguageClassifier naturalLanguageClassifier;

Examples/ServiceExamples/Scripts/ExampleNaturalLanguageUnderstandingV1.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
public class ExampleNaturalLanguageUnderstandingV1 : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
3232
private fsSerializer _serializer = new fsSerializer();
3333
//private string _token = "<authentication-token>";
3434

Examples/ServiceExamples/Scripts/ExamplePersonalityInsightsV3.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626

2727
public class ExamplePersonalityInsightsV3 : MonoBehaviour
2828
{
29-
private string _username;
30-
private string _password;
31-
private string _url;
32-
private fsSerializer _serializer = new fsSerializer();
29+
private string _username = null;
30+
private string _password = null;
31+
private string _url = null;
32+
//private fsSerializer _serializer = new fsSerializer();
3333

3434
private PersonalityInsights _personalityInsights;
3535
private string _personalityInsightsVersionDate = "2017-05-26";

0 commit comments

Comments
 (0)