Skip to content

Commit

Permalink
Merge pull request #1169 from harvesthq/remove-unused-method
Browse files Browse the repository at this point in the history
Remove unused get_side_border_padding
  • Loading branch information
pfiller committed Apr 26, 2013
2 parents b374da6 + 87c1f24 commit fd1a7a3
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 31 deletions.
9 changes: 1 addition & 8 deletions chosen/chosen.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Copyright (c) 2011 by Harvest


(function() {
var $, Chosen, get_side_border_padding, root,
var $, Chosen, root,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

Expand Down Expand Up @@ -1107,11 +1107,4 @@ Copyright (c) 2011 by Harvest

root.Chosen = Chosen;

get_side_border_padding = function(elmt) {
var side_border_padding;
return side_border_padding = elmt.outerWidth() - elmt.width();
};

root.get_side_border_padding = get_side_border_padding;

}).call(this);
2 changes: 1 addition & 1 deletion chosen/chosen.jquery.min.js

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions chosen/chosen.proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Copyright (c) 2011 by Harvest


(function() {
var Chosen, get_side_border_padding, root,
var Chosen, root,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

Expand Down Expand Up @@ -1110,12 +1110,4 @@ Copyright (c) 2011 by Harvest

root.Chosen = Chosen;

get_side_border_padding = function(elmt) {
var layout, side_border_padding;
layout = new Element.Layout(elmt);
return side_border_padding = layout.get("border-left") + layout.get("border-right") + layout.get("padding-left") + layout.get("padding-right");
};

root.get_side_border_padding = get_side_border_padding;

}).call(this);
2 changes: 1 addition & 1 deletion chosen/chosen.proto.min.js

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,3 @@ class Chosen extends AbstractChosen
string

root.Chosen = Chosen

get_side_border_padding = (elmt) ->
side_border_padding = elmt.outerWidth() - elmt.width()

root.get_side_border_padding = get_side_border_padding
7 changes: 0 additions & 7 deletions coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,3 @@ class Chosen extends AbstractChosen
@search_field.setStyle({'width': w + 'px'})

root.Chosen = Chosen


get_side_border_padding = (elmt) ->
layout = new Element.Layout(elmt)
side_border_padding = layout.get("border-left") + layout.get("border-right") + layout.get("padding-left") + layout.get("padding-right")

root.get_side_border_padding = get_side_border_padding

0 comments on commit fd1a7a3

Please sign in to comment.