Skip to content

Commit

Permalink
Remove redundant length handling from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald J Kimball committed Apr 5, 2012
1 parent 05c03cb commit 51cb924
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion js/rx/coretypes.js
Expand Up @@ -136,7 +136,6 @@ Rx.CoreType.strType = function (opt) {
Rx.CoreType.strType.uri = 'tag:codesimply.com,2008:rx/core/str';
Rx.CoreType.strType.prototype.check = function (v) {
if (! ((typeof(v) == 'string') || (v instanceof String))) return false;
if (this.length_check && ! this.length_check.check(v.length)) return false;
if (this.value != null && v != this.value) return false;
if (this.length_check && ! this.length_check.check(v.length)) {
return false;
Expand Down
1 change: 0 additions & 1 deletion python/Rx.py
Expand Up @@ -390,7 +390,6 @@ def __init__(self, schema, rx):

def check(self, value):
if not type(value) in (str, unicode): return False
if self.length and not self.length(len(value)): return False
if (not self.value is None) and value != self.value: return False
if self.length and not self.length(len(value)): return False
return True
Expand Down
4 changes: 0 additions & 4 deletions ruby/Rx.rb
Expand Up @@ -596,10 +596,6 @@ def initialize(param, rx)

@value = param['value']
end

if param['length'] then
@length_range = Rx::Helper::Range.new( param['length'] )
end
end

def check!(value)
Expand Down

0 comments on commit 51cb924

Please sign in to comment.