Skip to content

Commit a61caca

Browse files
committed
Remove unused function for R60 support
1 parent 800bab8 commit a61caca

2 files changed

Lines changed: 2 additions & 20 deletions

File tree

getnative/app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88
from functools import partial
99
from typing import Union, List, Tuple
10-
from getnative.utils import GetnativeException, plugin_from_identifier, get_attr, get_source_filter, to_float
10+
from getnative.utils import GetnativeException, get_attr, get_source_filter, to_float
1111
try:
1212
import matplotlib as mpl
1313
import matplotlib.pyplot as pyplot
@@ -44,8 +44,7 @@ def __init__(self, kernel: str, b: Union[float, int] = 0, c: Union[float, int] =
4444
self.b = b
4545
self.c = c
4646
self.taps = taps
47-
_d = plugin_from_identifier(core, "tegaf.asi.xe")
48-
self.plugin = _d if _d is not None else get_attr(core, 'descale', None)
47+
self.plugin = get_attr(core, 'descale', None)
4948
if self.plugin is None:
5049
return
5150

getnative/utils.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,12 @@
11
import os
22
import argparse
33
import vapoursynth
4-
from typing import Union, Callable
54

65

76
class GetnativeException(BaseException):
87
pass
98

109

11-
def plugin_from_identifier(core: vapoursynth.Core, identifier: str) -> Union[Callable, None]:
12-
"""
13-
Get a plugin from vapoursynth with only the plugin identifier
14-
15-
:param core: the core from vapoursynth
16-
:param identifier: plugin identifier. Example "tegaf.asi.xe"
17-
:return Plugin or None
18-
"""
19-
20-
return getattr(
21-
core,
22-
core.get_plugins().get(identifier, {}).get("namespace", ""),
23-
None
24-
)
25-
26-
2710
def vpy_source_filter(path):
2811
import runpy
2912
runpy.run_path(path, {}, "__vapoursynth__")

0 commit comments

Comments
 (0)