Skip to content

Commit

Permalink
Remove unused imports from legacy controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Dec 8, 2023
1 parent cfca202 commit ca1699d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 30 deletions.
5 changes: 1 addition & 4 deletions lib/galaxy/managers/forms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from sqlalchemy import select
from sqlalchemy.orm import (
exc as sqlalchemy_exceptions,
Session,
)
from sqlalchemy.orm import exc as sqlalchemy_exceptions

from galaxy.exceptions import (
InconsistentDatabase,
Expand Down
6 changes: 1 addition & 5 deletions lib/galaxy/webapps/galaxy/controllers/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
util,
web,
)
from galaxy.exceptions import (
ActionInputError,
MessageException,
)
from galaxy.exceptions import ActionInputError
from galaxy.managers.quotas import QuotaManager
from galaxy.model import tool_shed_install as install_model
from galaxy.model.base import transaction
Expand All @@ -37,7 +34,6 @@
time_ago,
)
from galaxy.webapps.base import controller
from tool_shed.util.web_util import escape

log = logging.getLogger(__name__)

Expand Down
12 changes: 2 additions & 10 deletions lib/galaxy/webapps/galaxy/controllers/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,12 @@
import logging
import re

from markupsafe import escape
from sqlalchemy import (
false,
true,
)

from galaxy import (
model,
util,
)
from galaxy import model
from galaxy.model.base import transaction
from galaxy.model.index_filter_util import (
raw_text_column_filter,
Expand All @@ -23,11 +19,7 @@
parse_filters_structured,
RawTextTerm,
)
from galaxy.web.framework.helpers import (
grids,
iff,
time_ago,
)
from galaxy.web.framework.helpers import grids
from galaxy.webapps.base.controller import (
BaseUIController,
web,
Expand Down
12 changes: 1 addition & 11 deletions lib/galaxy/webapps/galaxy/controllers/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,14 @@
HTTPNotFound,
)
from sqlalchemy import (
desc,
false,
or_,
text,
true,
)
from sqlalchemy.orm import (
joinedload,
undefer,
)

from galaxy import (
model,
util,
web,
)
from galaxy.managers.hdas import HDAManager
Expand All @@ -31,17 +25,13 @@
UsesItemRatings,
)
from galaxy.structured_app import StructuredApp
from galaxy.util import (
sanitize_text,
unicodify,
)
from galaxy.util import unicodify
from galaxy.util.sanitize_html import sanitize_html
from galaxy.visualization.data_providers.phyloviz import PhylovizDataProvider
from galaxy.visualization.genomes import (
decode_dbkey,
GenomeRegion,
)
from galaxy.visualization.plugins import registry
from galaxy.web.framework.helpers import (
grids,
time_ago,
Expand Down

0 comments on commit ca1699d

Please sign in to comment.