Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola-Mircic committed Dec 24, 2023
1 parent 73f6704 commit 440f14c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/efakturaplus/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public class App {

public static void main(String[] args) {
@SuppressWarnings("unused")
Window w = new Window();
}

Expand Down
2 changes: 0 additions & 2 deletions src/efakturaplus/gui/InvoiceList.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
Expand All @@ -27,7 +26,6 @@
import javax.swing.border.Border;

import efakturaplus.models.Invoice;
import efakturaplus.models.InvoiceStatus;
import efakturaplus.models.InvoiceType;
import efakturaplus.util.EFakturaUtil;
import efakturaplus.util.PrintColor;
Expand Down
2 changes: 0 additions & 2 deletions src/efakturaplus/gui/InvoicePanel.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package efakturaplus.gui;

import java.awt.LayoutManager;

import javax.swing.JPanel;

public class InvoicePanel extends JPanel {
Expand Down
1 change: 0 additions & 1 deletion src/efakturaplus/gui/KeyPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
Expand Down
10 changes: 3 additions & 7 deletions src/efakturaplus/util/QRUtil.java
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
package efakturaplus.util;

import java.awt.Image;

import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpRequest.BodyPublisher;
import java.net.http.HttpRequest.BodyPublishers;
import java.nio.ByteBuffer;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.ArrayList;
import java.util.Base64;
import java.util.Locale;
import java.util.concurrent.Flow.Subscriber;

import javax.imageio.ImageIO;

import org.json.JSONObject;

import ch.randelshofer.util.ArrayUtil;
import efakturaplus.models.Invoice;

public class QRUtil {
Expand Down Expand Up @@ -112,6 +106,8 @@ private String invoiceToString(Invoice inv) {
}

ro+=inv.paymentId;

s.add(ro);
}

return String.join("|", s);
Expand Down

0 comments on commit 440f14c

Please sign in to comment.