clean-up legacy code

This commit is contained in:
ppwwyyxx
2015-10-09 15:07:28 -04:00
parent 26115c48df
commit 3f40bec3ef
2 changed files with 1 additions and 12 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ elif [[ $1 == "db" || $1 == "res" ]]; then
if [[ $1 == "res" ]]; then
echo "Pulling resources... this might take a long time, because adb sucks..."
mkdir -p resource; cd resource
for d in image2 voice2 emoji avatar video sfs; do
for d in image2 voice2 emoji video sfs; do
mkdir -p $d; cd $d
adb pull $RES_DIR/$chooseUser/$d
cd ..
-11
View File
@@ -57,14 +57,3 @@ class AvatarReader(object):
return index_avatar
except:
return -1
@staticmethod
def read_bm(fname):
size = (96, 96, 3)
img = np.zeros(size, dtype='uint8')
with open(fname, 'rb') as f:
for i in range(96):
for j in range(96):
r, g, b, a = map(ord, f.read(4))
img[i,j] = (r, g, b)
return img