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

Remove unused methods. #1

Closed
wants to merge 2 commits into from
Closed

Remove unused methods. #1

wants to merge 2 commits into from

Conversation

noniq
Copy link
Member

@noniq noniq commented Aug 27, 2016

#to_html is used only once in #preview, and #preview isn’t used anywhere at all (I searched across the complete bundle source code, including commands.)

I stumbled upon this because #to_html in this bundle is the only place still referring to lib/bluecloth.rb from the bundle support bundle. After we get rid of this here, we can then get rid of bluecloth.rb.

`#to_html` is used only once in `#preview`, and `#preview` isn’t used anywhere at all (I searched across the complete bundle source code, including commands.)

I stumbled upon this because `#to_html` in this bundle is the only place still referring to `lib/bluecloth.rb` from the bundle support bundle. After we get rid of this here, we can then get rid of `bluecloth.rb`.
Seems like `#post` and `#update` (amongst others) were originally copied from the “Blogging” bundle, but there are no commands here actually using them.

`#show_post_page` is only used by `#post` and `#update`. Removing this (dead) code here means that `lib/browser` from bundle support is then only used by the blogging bundle and can be moved from bundle support into that bundle.
@infininight
Copy link
Member

Looked at the commands in question and they really just seemed to serve no real purpose. I've just removed them and the accompanying libraries entirely. Problem solved. :)

infininight pushed a commit to textmate/bundle-support.tmbundle that referenced this pull request Aug 29, 2016
Not used anywhere. And bundles that want to render Markdown should use `TextMate::Markdown.to_html` anyway (which uses Markdown.pl internally).

Also see textmate/typo3.tmbundle#1
@noniq noniq deleted the remove-unused-methods branch August 29, 2016 19:15
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.

2 participants