소스 검색

remove unused argument

jomo 10 년 전
부모
커밋
baa87bc23b
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      modules/helpers.js
  2. 1 1
      modules/networking.js

+ 2 - 2
modules/helpers.js

@@ -241,7 +241,7 @@ exp.get_skin = function(rid, uuid, callback) {
           callback(err, hash, img);
         });
       } else {
-        networking.save_texture(rid, uuid, hash, skinpath, function(err, response, img) {
+        networking.save_texture(rid, hash, skinpath, function(err, response, img) {
           callback(err, hash, img);
         });
       }
@@ -310,7 +310,7 @@ exp.get_cape = function(rid, uuid, callback) {
           callback(err, hash, img);
         });
       } else {
-        networking.save_texture(rid, uuid, hash, capepath, function(err, response, img) {
+        networking.save_texture(rid, hash, capepath, function(err, response, img) {
           if (response && response.statusCode === 404) {
             callback(err, hash, null);
           } else {

+ 1 - 1
modules/networking.js

@@ -155,7 +155,7 @@ function getUrl(rid, uuid, profile, type, callback) {
   }
 }
 
-exp.save_texture = function(rid, uuid, hash, outpath, callback) {
+exp.save_texture = function(rid, hash, outpath, callback) {
   if (hash) {
     var textureurl = "http://textures.minecraft.net/texture/" + hash;
     exp.get_from(rid, textureurl, function(img, response, err) {