Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
niteshbalusu11 committed Sep 4, 2024
1 parent c1aac83 commit 0b6853b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/windows/Settings/LndLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Container from "../../components/Container";
import { NavigationButton } from "../../components/NavigationButton";
import { toast } from "../../utils";
import LogBox from "../../components/LogBox";
import useForceUpdate from "../../hooks/useForceUpdate";

import { useTranslation } from "react-i18next";
import { namespaces } from "../../i18n/i18n.constants";
Expand All @@ -21,9 +20,6 @@ export default function LndLog({ navigation }: ILndLogProps) {
const t = useTranslation(namespaces.settings.lndLog).t;
const [logs, setLogs] = useState("");

let log = useRef("");
const forceUpdate = useForceUpdate();

const fetchLogs = async () => {
try {
const tailLog = await NativeModules.LndMobileTools.tailLog(100);
Expand Down
9 changes: 0 additions & 9 deletions src/windows/SyncInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ export default function SyncInfo({}: ISyncInfoProps) {
let bestBlockheight = useStoreState((store) => store.lightning.bestBlockheight);
const [showLndLog, setShowLndLog] = useState(false);
const [logs, setLogs] = useState("");
const listener = useRef<EmitterSubscription>();

useEffect(() => {
return () => {
if (listener.current) {
listener.current?.remove();
}
};
}, []);

const fetchLogs = async () => {
try {
Expand Down

0 comments on commit 0b6853b

Please sign in to comment.