Skip to content

Commit

Permalink
refactor: remove unused rpm callback types
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnks committed Jun 29, 2016
1 parent 03d990a commit 25e626d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions dnf/yum/rpmtrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ def callback(self, what, amount, total, key, client_data):
key = ucd(key)
if what == rpm.RPMCALLBACK_TRANS_START:
self._transStart(total)
elif what == rpm.RPMCALLBACK_TRANS_PROGRESS:
self._transProgress()
elif what == rpm.RPMCALLBACK_TRANS_STOP:
self._transStop()
elif what == rpm.RPMCALLBACK_ELEM_PROGRESS:
Expand All @@ -418,10 +416,6 @@ def callback(self, what, amount, total, key, client_data):
self._instCloseFile(key)
elif what == rpm.RPMCALLBACK_INST_PROGRESS:
self._instProgress(amount, total, key)
elif what == rpm.RPMCALLBACK_UNINST_START:
self._unInstStart()
elif what == rpm.RPMCALLBACK_UNINST_PROGRESS:
self._unInstProgress()
elif what == rpm.RPMCALLBACK_UNINST_STOP:
self._unInstStop(key)
elif what == rpm.RPMCALLBACK_CPIO_ERROR:
Expand All @@ -430,8 +424,6 @@ def callback(self, what, amount, total, key, client_data):
self._unpackError(key)
elif what == rpm.RPMCALLBACK_SCRIPT_ERROR:
self._scriptError(amount, total, key)
elif what == rpm.RPMCALLBACK_SCRIPT_START:
self._scriptStart()
elif what == rpm.RPMCALLBACK_SCRIPT_STOP:
self._scriptStop()

Expand All @@ -444,9 +436,6 @@ def _transStart(self, total):
self.ts_done_open()
self._te_list = list(self.base._ts)

def _transProgress(self):
pass

def _transStop(self):
if self._ts_done is not None:
self._ts_done.close()
Expand Down Expand Up @@ -501,12 +490,6 @@ def _instProgress(self, amount, total, key):
pkg, action, amount, total, self.complete_actions,
self.total_actions)

def _unInstStart(self):
pass

def _unInstProgress(self):
pass

def _unInstStop(self, key):
pkg, state, _ = self._extract_cbkey(key)
self.total_removed += 1
Expand Down Expand Up @@ -575,9 +558,6 @@ def _scriptError(self, amount, total, key):
for display in self.displays:
display.error(msg)

def _scriptStart(self):
pass

def _scriptStop(self):
self._scriptout()

Expand Down

0 comments on commit 25e626d

Please sign in to comment.