Skip to content
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

Rider suggested cleanup, part 1 #5265

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Rider suggested cleanup, part 1 #5265

merged 2 commits into from
Apr 15, 2021

Conversation

chriselion
Copy link
Contributor

Proposed change(s)

Low-hanging fruit, mostly unused using ...

Types of change(s)

  • Bug fix

@@ -8,7 +6,7 @@ public class NumberTile : MonoBehaviour
public Material DefaultMaterial;
public Material SuccessMaterial;

private bool m_Visited = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how people feel about. My instinct is to a) be explicit (from python) and b) always initialize everything (coming from C++), but Rider likes to complain about it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think making them explicit is not a bad thing and sometimes it feels safer (I know it works that way but I like seeing it written that way).
No strong opinions anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

traumatized by c++

@@ -1,8 +1,9 @@
using System;
using System.Linq;
Copy link
Contributor Author

@chriselion chriselion Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only needed in non-editor compilation.

@@ -8,7 +6,7 @@ public class NumberTile : MonoBehaviour
public Material DefaultMaterial;
public Material SuccessMaterial;

private bool m_Visited = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think making them explicit is not a bad thing and sometimes it feels safer (I know it works that way but I like seeing it written that way).
No strong opinions anyway.

@chriselion chriselion merged commit 2721989 into main Apr 15, 2021
@delete-merged-branch delete-merged-branch bot deleted the rider-cleanup-1 branch April 15, 2021 20:45
Copy link
Contributor

@surfnerd surfnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants