remove "runthis" and other unused fns from utils.py

Bug #1012234 reported by dan wendlandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Harsh Prasad

Bug Description

Several methods in utils.py seem to be unused, for example, "runthis" (this method even seems to duplicate the "execute" method also in the same file).

dan wendlandt (danwent)
Changed in quantum:
status: New → Confirmed
tags: added: low-hanging-fruit
Revision history for this message
Harsh Prasad (prasad-tanay) wrote :

Does all unused methods need to be removed or only some specific? Like currently i couldnt find any usage of generate_uid and generate_mac functions in utils.py. Are such methods to be removed too?

Revision history for this message
dan wendlandt (danwent) wrote : Re: [Bug 1012234] Re: remove "runthis" and other unused fns from utils.py

I would remove anything that is not used.

dan

On Thu, Jun 14, 2012 at 11:10 PM, Harsh Prasad <email address hidden>wrote:

> Does all unused methods need to be removed or only some specific? Like
> currently i couldnt find any usage of generate_uid and generate_mac
> functions in utils.py. Are such methods to be removed too?
>
> --
> You received this bug notification because you are a member of Netstack
> Core Developers, which is subscribed to quantum.
> https://bugs.launchpad.net/bugs/1012234
>
> Title:
> remove "runthis" and other unused fns from utils.py
>
> Status in OpenStack Quantum (virtual network service):
> Confirmed
>
> Bug description:
> Several methods in utils.py seem to be unused, for example, "runthis"
> (this method even seems to duplicate the "execute" method also in the
> same file).
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/quantum/+bug/1012234/+subscriptions
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira, Inc: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Changed in quantum:
assignee: nobody → Harsh Prasad (prasad-tanay)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/8653

Changed in quantum:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/8653
Committed: http://github.com/openstack/quantum/commit/dd0fe18690dfadec6dcc1c9161498db60b053083
Submitter: Jenkins
Branch: master

commit dd0fe18690dfadec6dcc1c9161498db60b053083
Author: Harsh Prasad <email address hidden>
Date: Mon Jun 18 14:18:24 2012 +0530

    removed "runthis" and other unused functions from utils.py

    Fixes Bug #1012234

    Removed all unused functions and imports from common/utils.py.

    Patch set 2: Submitted same code by mistake
    Patch set 3: removed commented code but inappropriate commit msg.
    Patch set 4: removed commented code with appropriate commit msg. Removed pep8 changes for ucs plugin.

    Change-Id: I0ec33be127ef0389685a378c6f8d39ce5cbdb58c

Changed in quantum:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in quantum:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in quantum:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.