Skip to content

disabled warnings on tests and examples. Removed some unused variables. #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 1, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Config.json.enc
Binary file not shown.
4 changes: 3 additions & 1 deletion Examples/ServiceExamples/Scripts/ExampleAlchemyLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
using IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1;
using IBM.Watson.DeveloperCloud.Logging;

#pragma warning disable 0219
#pragma warning disable 0414
public class ExampleAlchemyLanguage : MonoBehaviour
{
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();
Expand Down Expand Up @@ -52,7 +54,7 @@ void Start()
// Log.Debug("ExampleAlchemyLanguage", "Failed to get concepts HTML POST!");

////Get Concepts URL POST
//if (!m_AlchemyAPI.GetRankedConcepts(OnGetConcepts, m_ExampleURL_watsonJeopardy))
//if (!m_AlchemyAPI.GetRankedConcepts(OnGetCzoncepts, m_ExampleURL_watsonJeopardy))
// Log.Debug("ExampleAlchemyLanguage", "Failed to get concepts HTML POST!");

////Get Date URL POST
Expand Down
1 change: 1 addition & 0 deletions Examples/ServiceExamples/Scripts/ExampleRetrieveAndRank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using UnityEditor;
#endif

#pragma warning disable 219
public class ExampleRetrieveAndRank : MonoBehaviour
{
private RetrieveAndRank m_RetrieveAndRank = new RetrieveAndRank();
Expand Down
1 change: 1 addition & 0 deletions Examples/ServiceExamples/Scripts/ExampleTextToSpeech.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using UnityEngine;
using IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1;
using IBM.Watson.DeveloperCloud.Logging;
#pragma warning disable 0414

public class ExampleTextToSpeech : MonoBehaviour
{
Expand Down
2 changes: 2 additions & 0 deletions Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
using IBM.Watson.DeveloperCloud.Logging;
using IBM.Watson.DeveloperCloud.Utilities;

#pragma warning disable 0414

public class ExampleVisualRecognition : MonoBehaviour
{
private VisualRecognition m_VisualRecognition = new VisualRecognition();
Expand Down
3 changes: 1 addition & 2 deletions Scripts/Services/PersonalityInsights/PersonalityInsights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ public bool GetProfile(OnGetProfile callback, string source,
req.Headers["Content-Language"] = contentLanguage;
req.Headers["Accept"] = accept;
req.Headers["Accept-Language"] = acceptLanguage;

string normalizedSource = source.Trim().ToLower();

if (source.StartsWith(Application.dataPath))
{
string jsonData = default(string);
Expand Down
3 changes: 3 additions & 0 deletions Scripts/UnitTests/TestAlchemyLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
using UnityEngine;
using System.Collections.Generic;

#pragma warning disable 219
#pragma warning disable 0414

namespace IBM.Watson.DeveloperCloud.UnitTests
{
public class TestAlchemyAPI : UnitTest
Expand Down
2 changes: 2 additions & 0 deletions Scripts/UnitTests/TestConversationExperimental.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
using IBM.Watson.DeveloperCloud.Utilities;
using IBM.Watson.DeveloperCloud.Logging;

#pragma warning disable 0169
#pragma warning disable 0414
public class TestConversationExperimental// : UnitTest // Commented out integration test
{
private ConversationExperimental m_Conversation = new ConversationExperimental();
Expand Down
2 changes: 1 addition & 1 deletion Scripts/UnitTests/TestLanguageTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
using IBM.Watson.DeveloperCloud.Services.LanguageTranslator.v1;
using IBM.Watson.DeveloperCloud.Utilities;
using System.Collections;

#pragma warning disable 0414
namespace IBM.Watson.DeveloperCloud.UnitTests
{
public class TestLanguageTranslator// : UnitTest // commented out UnitTest unitl LanguageTranslator goes live
Expand Down
3 changes: 3 additions & 0 deletions Scripts/UnitTests/TestRetrieveAndRank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
using IBM.Watson.DeveloperCloud.Utilities;
using System.Collections.Generic;

#pragma warning disable 0649
#pragma warning disable 0414

namespace IBM.Watson.DeveloperCloud.UnitTests
{
public class TestRetrieveAndRank : UnitTest
Expand Down
1 change: 1 addition & 0 deletions Scripts/UnitTests/TestTextToSpeech.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using IBM.Watson.DeveloperCloud.Logging;
using IBM.Watson.DeveloperCloud.Utilities;

#pragma warning disable 0414
namespace IBM.Watson.DeveloperCloud.UnitTests
{
public class TestTextToSpeech : UnitTest
Expand Down
2 changes: 2 additions & 0 deletions Scripts/UnitTests/TestVisualRecognition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
using System;
using IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3;

#pragma warning disable 0414

namespace IBM.Watson.DeveloperCloud.UnitTests
{
public class TestVisualRecognition : UnitTest
Expand Down
2 changes: 2 additions & 0 deletions Scripts/Widgets/WebCamDisplayWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
using UnityEngine.UI;
using IBM.Watson.DeveloperCloud.Logging;

#pragma warning disable 0414

namespace IBM.Watson.DeveloperCloud.Widgets
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Widgets/WebCamWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using IBM.Watson.DeveloperCloud.Logging;
using IBM.Watson.DeveloperCloud.Utilities;
using UnityEngine.UI;

#pragma warning disable 0414
namespace IBM.Watson.DeveloperCloud.Widgets
{
/// <summary>
Expand Down