From 5f0e80df086874031b71a7973b525cf4e0ebbb35 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Mon, 26 Jun 2023 19:29:29 +0530 Subject: [PATCH] remove unnecessary session url field --- lib/components/term-group.tsx | 1 - lib/constants/sessions.ts | 12 ------------ lib/hyper.d.ts | 3 +-- lib/reducers/sessions.ts | 1 - 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/components/term-group.tsx b/lib/components/term-group.tsx index a12c6739..a0902ea1 100644 --- a/lib/components/term-group.tsx +++ b/lib/components/term-group.tsx @@ -82,7 +82,6 @@ class TermGroup_ extends React.PureComponent { letterSpacing: this.props.letterSpacing, modifierKeys: this.props.modifierKeys, padding: this.props.padding, - url: session.url, cleared: session.cleared, search: session.search, cols: session.cols, diff --git a/lib/constants/sessions.ts b/lib/constants/sessions.ts index 5deb28b0..27b27e57 100644 --- a/lib/constants/sessions.ts +++ b/lib/constants/sessions.ts @@ -8,8 +8,6 @@ export const SESSION_USER_EXIT = 'SESSION_USER_EXIT'; export const SESSION_SET_ACTIVE = 'SESSION_SET_ACTIVE'; export const SESSION_CLEAR_ACTIVE = 'SESSION_CLEAR_ACTIVE'; export const SESSION_USER_DATA = 'SESSION_USER_DATA'; -export const SESSION_URL_SET = 'SESSION_URL_SET'; -export const SESSION_URL_UNSET = 'SESSION_URL_UNSET'; export const SESSION_SET_XTERM_TITLE = 'SESSION_SET_XTERM_TITLE'; export const SESSION_SET_CWD = 'SESSION_SET_CWD'; export const SESSION_SEARCH = 'SESSION_SEARCH'; @@ -63,14 +61,6 @@ export interface SessionClearActiveAction { export interface SessionUserDataAction { type: typeof SESSION_USER_DATA; } -export interface SessionUrlSetAction { - type: typeof SESSION_URL_SET; - uid: string; -} -export interface SessionUrlUnsetAction { - type: typeof SESSION_URL_UNSET; - uid: string; -} export interface SessionSetXtermTitleAction { type: typeof SESSION_SET_XTERM_TITLE; uid: string; @@ -97,8 +87,6 @@ export type SessionActions = | SessionSetActiveAction | SessionClearActiveAction | SessionUserDataAction - | SessionUrlSetAction - | SessionUrlUnsetAction | SessionSetXtermTitleAction | SessionSetCwdAction | SessionSearchAction; diff --git a/lib/hyper.d.ts b/lib/hyper.d.ts index 1d177d48..a0bb1648 100644 --- a/lib/hyper.d.ts +++ b/lib/hyper.d.ts @@ -117,10 +117,10 @@ export type session = { shell: string | null; title: string; uid: string; - url: string | null; splitDirection?: 'HORIZONTAL' | 'VERTICAL'; activeUid?: string; }; + export type sessionState = Immutable<{ sessions: Record; activeUid: string | null; @@ -384,7 +384,6 @@ export type TermProps = { term: Terminal | null; uid: string; uiFontFamily: string; - url: string | null; webGLRenderer: boolean; webLinksActivationKey: 'ctrl' | 'alt' | 'meta' | 'shift' | ''; windowsPty?: IWindowsPty; diff --git a/lib/reducers/sessions.ts b/lib/reducers/sessions.ts index c006ad8e..9d470345 100644 --- a/lib/reducers/sessions.ts +++ b/lib/reducers/sessions.ts @@ -25,7 +25,6 @@ function Session(obj: Immutable.DeepPartial) { title: '', cols: null, rows: null, - url: null, cleared: false, search: false, shell: '',