aboutsummaryrefslogtreecommitdiffstats
path: root/lib/percept/src/egd_font.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-18 11:39:47 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-18 11:39:47 +0200
commit02288f2c754c8d54d138a736fbada68706bf035e (patch)
tree4bce0eb4968b02caed179e89b516a4b34e3c7f45 /lib/percept/src/egd_font.erl
parenta41966287e6d5d973ab15e327c5065ea1692900e (diff)
parentbcf2da2389d1df99629ae524a4cc451bdf6224ae (diff)
downloadotp-02288f2c754c8d54d138a736fbada68706bf035e.tar.gz
otp-02288f2c754c8d54d138a736fbada68706bf035e.tar.bz2
otp-02288f2c754c8d54d138a736fbada68706bf035e.zip
Merge branch 'egil/percept/fix-unmatched_return/OTP-13595'
* egil/percept/fix-unmatched_return/OTP-13595: egd: Fix unmatched return warnings egd: Small code style refactoring percept: Fix unmatched return warnings percept: Small code style refactoring
Diffstat (limited to 'lib/percept/src/egd_font.erl')
-rw-r--r--lib/percept/src/egd_font.erl11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/percept/src/egd_font.erl b/lib/percept/src/egd_font.erl
index 95203d5441..ef1cc434df 100644
--- a/lib/percept/src/egd_font.erl
+++ b/lib/percept/src/egd_font.erl
@@ -51,9 +51,7 @@
%%
%%==========================================================================
-%%
-%% Interface functions
-%%
+%% Interface functions
%%==========================================================================
size(Font) ->
@@ -70,15 +68,14 @@ load(Filename) ->
load_font_header(Font).
%%==========================================================================
-%%
-%% Internal functions
-%%
+%% Internal functions
%%==========================================================================
%% ETS handler functions
initialize_table() ->
- ets:new(egd_font_table, [named_table, ordered_set, public]).
+ egd_font_table = ets:new(egd_font_table, [named_table, ordered_set, public]),
+ ok.
glyph_insert(Font, Code, Translation, LSs) ->
Element = {{Font, Code}, Translation, LSs},