Skip to content

Commit

Permalink
Removes unnecessary parameter from send_command method.
Browse files Browse the repository at this point in the history
  • Loading branch information
amujumdar committed Oct 7, 2011
1 parent fa63b76 commit cc0ba85
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/scm/adapters/bzrlib/bzrlib_pipe_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ def open_repository
send_command("REP_OPEN|#{@repository_url}")
end
def cat_file(revision, file)
send_command("CAT_FILE|#{revision}|#{file}", true)
send_command("CAT_FILE|#{revision}|#{file}")
end

def parent_tokens(revision)
send_command("PAR_TKNS|#{revision}", true).split('|')
send_command("PAR_TKNS|#{revision}").split('|')
end

def send_command(cmd, capture_output=false)
def send_command(cmd)
outbuf = StringIO.new
errbuf = StringIO.new

Expand All @@ -45,9 +45,7 @@ def send_command(cmd, capture_output=false)
end

# read content from stdout
if capture_output
return @stdout.read(size)
end
return @stdout.read(size)
end

def shutdown
Expand Down

0 comments on commit cc0ba85

Please sign in to comment.