Skip to content

Remove unused imports and unnecessary if statement #1740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion contrib/cyrillic_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import fileinput
import argparse
import sys

gibberish_to_cyrillic = {
'À': 'А',
Expand Down
5 changes: 1 addition & 4 deletions overviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from __future__ import print_function

import platform
import sys

# quick version check
Expand All @@ -28,7 +27,6 @@
import os
import os.path
import re
import subprocess
import multiprocessing
import time
import logging
Expand All @@ -38,10 +36,9 @@
from overviewer_core import util
from overviewer_core import logger
from overviewer_core import textures
from overviewer_core import optimizeimages, world
from overviewer_core import world
from overviewer_core import config_parser, tileset, assetmanager, dispatcher
from overviewer_core import cache
from overviewer_core import observer
from overviewer_core.nbt import CorruptNBTError

helptext = """
Expand Down
2 changes: 0 additions & 2 deletions overviewer_core/progressbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ def finish(self):


if __name__=='__main__':
import os

def example1():
widgets = ['Test: ', Percentage(), ' ', Bar(marker=RotatingMarker()),
' ', ETA(), ' ', FileTransferSpeed()]
Expand Down
3 changes: 1 addition & 2 deletions overviewer_core/settingsDefinition.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
from collections import OrderedDict

from .settingsValidators import *
from .observer import ProgressBarObserver, LoggingObserver, JSObserver
from .optimizeimages import pngnq, optipng, pngcrush
from .observer import ProgressBarObserver, LoggingObserver
import platform
import sys

Expand Down
1 change: 0 additions & 1 deletion overviewer_core/settingsValidators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from collections import OrderedDict

from . import rendermodes
from . import util
from .optimizeimages import Optimizer
from .world import LOWER_LEFT, LOWER_RIGHT, UPPER_LEFT, UPPER_RIGHT

Expand Down
5 changes: 1 addition & 4 deletions overviewer_core/textures.py
Original file line number Diff line number Diff line change
Expand Up @@ -3622,10 +3622,7 @@ def repeater(self, blockid, data):
top = self.load_image_texture("assets/minecraft/textures/block/repeater.png") if blockid == 93 else self.load_image_texture("assets/minecraft/textures/block/repeater_on.png")
side = self.load_image_texture("assets/minecraft/textures/block/smooth_stone_slab_side.png")
increment = 13

if (data & 0x3) == 0: # pointing east
pass


if (data & 0x3) == 1: # pointing south
top = top.rotate(270)

Expand Down
1 change: 0 additions & 1 deletion overviewer_core/tileset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import errno
import functools
import itertools
import logging
import os
import os.path
Expand Down
2 changes: 1 addition & 1 deletion overviewer_core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import os.path
import platform
import sys
from itertools import cycle, islice, product
from itertools import cycle, islice
from string import hexdigits
from subprocess import PIPE, Popen

Expand Down
2 changes: 0 additions & 2 deletions overviewer_core/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import os.path
import logging
import time
import random
import re
import locale

import numpy

Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from distutils.command.clean import clean
from distutils.command.build_ext import build_ext
from distutils.command.sdist import sdist
from distutils.cmd import Command
from distutils.dir_util import remove_tree
from distutils.sysconfig import get_python_inc
from distutils import log
import os, os.path
Expand Down