Skip to content

Commit

Permalink
chore: remove unused method (#23056)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Jun 18, 2024
1 parent b7f21e8 commit a16cf5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 0 additions & 20 deletions frontend/src/scenes/session-recordings/player/utils/playerUtils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { router } from 'kea-router'
import api from 'lib/api'
import { ExpandableConfig } from 'lib/lemon-ui/LemonTable'
import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'
import { MouseEvent as ReactMouseEvent, TouchEvent as ReactTouchEvent } from 'react'
import { urls } from 'scenes/urls'
Expand Down Expand Up @@ -35,25 +34,6 @@ export const getXPos = (event: ReactInteractEvent | InteractEvent): number => {
return 0
}

// Determines whether a given PlayerList row should be expanded or not.
//
// Checks if the row should be expanded depending on the expandable prop that was passed into the component,
// and if it's undeterminable, defaults to the component's local state. This logic is copied over from
// LemonTable and reappropriated for session recordings.
export function getRowExpandedState<T extends Record<string, any>>(
record: T,
recordIndex: number,
expandable?: ExpandableConfig<T>,
isRowExpandedLocal: boolean = false
): boolean {
return (
Number(!!expandable && (!expandable.rowExpandable || expandable.rowExpandable(record, recordIndex))) > 0 &&
(!expandable?.isRowExpanded || expandable?.isRowExpanded?.(record, recordIndex) === -1
? isRowExpandedLocal
: !!expandable?.isRowExpanded?.(record, recordIndex))
)
}

export async function addRecordingToPlaylist(
playlistId: SessionRecordingPlaylistType['short_id'],
sessionRecordingId: SessionRecordingType['id'],
Expand Down

0 comments on commit a16cf5c

Please sign in to comment.