Skip to content

Commit 2cdef52

Browse files
author
周晓东
committed
移除冗余方法
1 parent a0a64a5 commit 2cdef52

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

simple/src/main/java/com/jph/simple/CustomHelper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
import android.view.View;
66
import android.widget.EditText;
77
import android.widget.RadioGroup;
8-
98
import com.jph.takephoto.app.TakePhoto;
109
import com.jph.takephoto.compress.CompressConfig;
1110
import com.jph.takephoto.model.CropOptions;
1211
import com.jph.takephoto.model.LubanOptions;
1312
import com.jph.takephoto.model.TakePhotoOptions;
14-
1513
import java.io.File;
1614

17-
import me.shaohui.advancedluban.Luban;
18-
1915

2016
/**
2117
* - 支持通过相机拍照获取图片
@@ -144,7 +140,6 @@ private void configCompress(TakePhoto takePhoto){
144140
.create();
145141
}else {
146142
LubanOptions option=new LubanOptions.Builder()
147-
.setGear(Luban.CUSTOM_GEAR)
148143
.setMaxHeight(height)
149144
.setMaxWidth(width)
150145
.setMaxSize(maxSize)

takephoto_library/src/main/java/com/jph/takephoto/model/LubanOptions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ public Builder setMaxWidth(int maxWidth) {
6868
return this;
6969
}
7070

71-
public Builder setGear(int gear) {
72-
return this;
73-
}
74-
7571
public LubanOptions create() {
7672
return options;
7773
}

0 commit comments

Comments
 (0)