Skip to content

Remove unused code#856

Merged
milleruntime merged 5 commits intoapache:masterfrom
milleruntime:remove-unused
Dec 21, 2018
Merged

Remove unused code#856
milleruntime merged 5 commits intoapache:masterfrom
milleruntime:remove-unused

Conversation

@milleruntime
Copy link
Copy Markdown
Contributor

Removed enough where I was able to drop a dependency from one of our poms. Broken up commits by different areas, with one just being general unused code and classes.

public static final int SIZEOF_BYTE = SIZEOF_BOOLEAN;

/**
* Size of char in bytes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These might be there for completeness.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can revert

}

public String getZooKeeperRoot() {
return zooKeeperRoot;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This isn't used but might be nice to keep. It could also be added again so I don't have strong feelings

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I like to remove stuff like this because it has a cascading effect, allowing removal of more.

public static final int CONCURRENT_SKIPLISTMAP_ENTRY;

/** Overhead for ReentrantReadWriteLock */
public static final int REENTRANT_LOCK;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure about cleaning up this class.

return;
}

s.setRange(ReplicationSection.getRange());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This class looks like it could be useful when debugging replication

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah and it is runnable but nothing to run it.

@milleruntime milleruntime merged commit b66ba5c into apache:master Dec 21, 2018
@milleruntime milleruntime deleted the remove-unused branch December 21, 2018 23:44
@ctubbsii ctubbsii added this to the 2.0.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants